package com.c1g19.service.office;

import com.c1g19.dao.office.OfficeDao;
import java.util.Map;

/**
 * Office类的service层
 * Created by Mr_C on 2017/3/14.
 */
public class OfficeService {

    /**
     * 获得所有的科室
     * @return
     */
    public Map<String, Object> getAllOffice(){
        OfficeDao officeDao = new OfficeDao();
        Map<String, Object> allOfficeList = officeDao.getAllOffice();
        return allOfficeList;
    }

    /**
     * 获得诊室相关详细信息
     * @param office_id 科室ID
     * @return
     */
    public Map<String, Object> getOfficeDetail(int office_id){
        OfficeDao officeDao = new OfficeDao();
        Map<String, Object> officeDetailList = officeDao.getOfficeDetail(office_id);
        return officeDetailList;
    }
}
